package com.coda.service;

import com.coda.adminVo.apartment.ApartmentDetailVo;
import com.coda.adminVo.apartment.ApartmentQueryVo;
import com.coda.adminVo.apartment.ApartmentSubmitVo;
import com.coda.entity.ApartmentInfo;
import com.coda.result.PageResult;

import java.util.List;

public interface ApartmentService {
    /**
     * 保存或更新公寓信息
     * @param apartmentSubmitVo
     */
    void saveOrUpdate(ApartmentSubmitVo apartmentSubmitVo);

    /**
     * 条件分页查询公寓列表
     * @param apartmentQueryVo
     * @return
     */
    PageResult pagelist(Integer current,Integer size,ApartmentQueryVo apartmentQueryVo);

    /**
     * 根据id获取公寓详细信息
     * @return
     */
    ApartmentDetailVo getDetailById(Long id);

    /**
     *根据id删除公寓信息
     * @param id
     */
    void removeById(Long id);

    /**
     * 根据id修改房间公寓发布状态
     * @param id
     * @param status
     */
    void updateStatus(Long id, Integer status);

    /**
     * 根据区县id查询公寓信息列表
     * @param id
     */
    List<ApartmentInfo> listInfoByDistrictId(Long id);
}
